package com.movie.playvideos.fragment;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.movie.playvideos.R;
import com.movie.playvideos.adapter.CustomMoviesAdapter;
import com.movie.playvideos.model.Movie;

/**
 * Show content of PhimBo in MainActivity's FrameLayout
 * @author Thinhdt1
 *
 */
//public class PhimBoFragment extends Fragment {
//
//	private HorizontalListView mListview ;
//	private List<Movie> mListMovies;
//	private CustomMoviesAdapter mAdapter;
//	
//	@Override
//	public View onCreateView(LayoutInflater inflater, ViewGroup container,
//			Bundle savedInstanceState) {
//		
//		return inflater.inflate(R.layout.content_phimbo, null);
//	}
//	
//	@Override
//	public void onActivityCreated(Bundle savedInstanceState) {
//		super.onActivityCreated(savedInstanceState);
//		
//		mListview = (HorizontalListView) getView().findViewById(R.id.listview);
//		
//		// set data
//		mListMovies = new ArrayList<Movie>();
//		mListMovies.add(new Movie("Thuy Nga 01", "", "00.05"));
//		mListMovies.add(new Movie("Thuy Nga 02", "", "00.05"));
//		mListMovies.add(new Movie("Thuy Nga 03", "", "00.05"));
//		mListMovies.add(new Movie("Thuy Nga 04", "", "00.05"));
//		mListMovies.add(new Movie("Thuy Nga 05", "", "00.05"));
//		
//		mAdapter = new CustomMoviesAdapter(getActivity(), R.layout.phimbo_each_item, mListMovies);
//		mListview.setAdapter(mAdapter);
//		mAdapter.notifyDataSetChanged();
//		
//		Log.d("Thinhdt", "PhimBoFragment");
//	}
//}
